import time


class RunTimeWithParam:
    def __init__(self, param):
        self.param = param

    def __call__(self, func):
        def wrapper(*args, **kwargs):
            start_time = time.time()
            result = func(*args, **kwargs)
            end_time = time.time()
            print(f"类装饰器，统计耗时:{end_time - start_time}")

            return result

        return wrapper
